package Myoopextends.a04oopextends04;

public class Test {
    public static void main(String[] args) {
        Manager m = new Manager("mm001","张三",10000,8000);
        System.out.println(m.getId()+","+m.getName() + "," +
                m.getSalary() + "," + m.getBouns());

        m.work();
        m.eat();

        Cook c = new Cook();
        c.setId("mm002");
        c.setName("李四");
        c.setSalary(10000);
        System.out.println(c.getId()+","+c.getName() + "," +
                c.getSalary() );
        c.work();
        c.eat();
    }
}
